﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public interface IMotionStateTriggle {
    void SetRecv(IMotionTriggleRecv recv);
}

public interface IMotionTriggleRecv {
    void OnTriggleBottom();
    void OffTriggleBottom();
}

public interface IMotionState {
    bool IsInAir();
}

public class MotionStateMgr : MonoBehaviour, IMotionTriggleRecv, IMotionState
{
    public MotionBottonTriggle BottonTriggle;

    public void OffTriggleBottom()
    {
        this.isInAir_ = true;
    }

    public void OnTriggleBottom()
    {
        this.isInAir_ = false;
    }

    public bool IsInAir()
    {
        return this.isInAir_;
    }

    private bool isInAir_;


}
